<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class DispatchLists extends Model
{
    public $table='DispatchLists';
    public $connection='U8';
    public function index($MODEL_CODE=''){
          $list=$this->where('cInvCode','=',"$MODEL_CODE")->field('cSoCode')->select()->toArray();
          if(isset($list[0]))return $list[0]['cSoCode'];
          return '';
    }
}
